package com.shadowtorcher.stdisk.bean;

import com.shadowtorcher.soulknife.DataSupport;
import com.shadowtorcher.soulknife.exception.BeanConfigErrorException;
import com.shadowtorcher.stdisk.util.StaticUtils;

import java.sql.SQLException;

public class CdnBean extends DataSupport {
    private String CdnId; // 主键
    private String CdnUrl;

    @Override
    public void save() throws BeanConfigErrorException, SQLException {
        if (this.CdnId == null) {
            this.CdnId = StaticUtils.generatorStringUUID();
        }
        super.save();
    }

    public String getCdnId() {
        return CdnId;
    }

    public void setCdnId(String cdnId) {
        this.CdnId = cdnId;
    }

    public String getCdnUrl() {
        return CdnUrl;
    }

    public void setCdnUrl(String cdnUrl) {
        this.CdnUrl = cdnUrl;
    }
}
